﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MINERP.MODEL.InfoConfig
{
    public  class PhotoSize_Info
    {
        /// <summary>
        /// id
        /// </summary>
        public int SizeId { get; set; }


        /// <summary>
        /// 高度最大值
        /// </summary>
        public double HeightMAX { get; set; }


        /// <summary>
        /// 高度最小值
        /// </summary>
        public double HeightMIN { get; set; }//单位为英寸

        /// <summary>
        /// 宽度最大值
        /// </summary>
        public double WidthMAX { get; set; }

        /// <summary>
        /// 宽度最小值
        /// </summary>
        public double WidthMIN { get; set; }

        /// <summary>
        /// 页数
        /// </summary>
        public int PageNum { get; set; }

        /// <summary>
        /// 尺寸别名
        /// </summary>
        public string Describe { get; set; }

        public string PhotoSize
        {
            get 
            {
                if (WidthMIN >= HeightMIN)
                {
                    return WidthMIN + "x" + HeightMIN;
                }
                else
                {
                    return HeightMIN + "x" + WidthMIN;
                }

            }
        }
        /// <summary>
        /// 高度最大值
        /// </summary>
        public double HeightCMMAX { get { return HeightMAX * 2.54; } }


        /// <summary>
        /// 高度最小值
        /// </summary>
        public double HeightCMMIN { get { return HeightMIN * 2.54; } }//单位为英寸

        /// <summary>
        /// 宽度最大值
        /// </summary>
        public double WidthCMMAX { get { return WidthMAX * 2.54 ; } }

        /// <summary>
        /// 宽度最小值
        /// </summary>
        public double WidthCMMIN { get { return WidthMIN * 2.54; } }
    }
}

